<%@ page import="com.bullsora.kindlerss.model.Subscription" %>



<div class="fieldcontain ${hasErrors(bean: subscriptionInstance, field: 'prefix', 'error')} required">
	<label for="prefix">
		<g:message code="subscription.prefix.label" default="Prefix" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="prefix" required="" value="${subscriptionInstance?.prefix}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriptionInstance, field: 'sendCronExpression', 'error')} required">
	<label for="sendCronExpression">
		<g:message code="subscription.sendCronExpression.label" default="Send Cron Expression" />
        <span class="required-indicator">*</span>		
	</label>
	<g:textField name="sendCronExpression" value="${subscriptionInstance?.sendCronExpression}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriptionInstance, field: 'enabled', 'error')} ">
	<label for="enabled">
		<g:message code="subscription.enabled.label" default="Enabled" />
		
	</label>
	<g:checkBox name="enabled" value="${subscriptionInstance?.enabled}" />
</div>

<div class="fieldcontain ${hasErrors(bean: subscriptionInstance, field: 'feeds', 'error')} ">
	<label for="feeds">
		<g:message code="subscription.feeds.label" default="Feeds" />
		
	</label>
	<g:select name="feeds" from="${availableFeeds}" multiple="multiple" optionKey="id" optionValue="shortName"  size="5" value="${subscriptionInstance?.feeds*.id}" class="many-to-many"/>
</div>

